<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf8">
	<link type="text/css" href="resources/css/jquery-ui.css" 		rel="stylesheet" />
	<link type="text/css" href="resources/css/flexigrid.css" 		rel="stylesheet">
	<link type="text/css" href="resources/css/main.css" 			rel="stylesheet"/>
	<link type="text/css" href="resources/css/ui.jqgrid.css"  media="screen" 	rel="stylesheet" />
	
	<script type="text/javascript" src="resources/jquery.min.js"></script>
	<script type="text/javascript" src="resources/jquery-ui.min.js"></script>
	<script type="text/javascript" src="resources/flexigrid.js"></script>
	
	<script type="text/javascript" src="resources/i18n/grid.locale-en.js" ></script>
	<script type="text/javascript" src="resources/jquery.jqGrid.src.js" ></script>
 	<script type="text/javascript" src="resources/jquery.validate.js"></script>
	

	<style type="text/css">
		* { font-family: Verdana; font-size: 96%; }
		label { width: 10em; float: left; }
		label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
		p { clear: both; }
		.submit { margin-left: 12em; }
		em { font-weight: bold; padding-right: 1em; vertical-align: top; }
	</style>
	<script>
	  $(document).ready(function(){
	    $("#submitAddUser").validate({
	    	 rules: {
	    		 	name: {required: true, minlength: 2},
	    		    password: "required",
	    		    password_again: {
	    		      equalTo: "#password"
	    		    }
	    		  },
	    	submitHandler: function(form) {
	    	   // some other code
	    	   // maybe disabling submit button
	    	   // then:
	    		form.submit();
	    	 }
	    	
	    });
	  });
	 </script>	
<title>Заказы он-лайн</title>	
</head>
<body title="Регистрация пользователя">
	<div id="header">
	  <div class="center">
	    <div id="logo"><a href="#">STANDART</a></div>
	   </div>
	</div>
	<center>
	<br/>
	
<form id="submitAddUser" method="post" action="addUser" class="cmxform"  >
	<fieldset>
		<table border="0" width="600px">
		<tr><td>
			<p><label for="name">Имя Фамилия</label><em>*</em>
			<input id="name" name="name"  size="25" class="required" /></p>
		</td></tr>
		<tr><td>			
			<p><label for="username">Логин</label><em>*</em>
			<input id="username" name="username"  size="25" class="required"   /></p>
		</td></tr>
		<tr><td>			
			<p><label for="password">Пароль</label><em>*</em>
			<input id="password" name="password"  size="25"  /></p>
		</td></tr>
		<tr><td>			
			<p><label for="password_again">Повторить пароль</label><em>*</em>
			<input id="password_again" name="password_again"  size="25"  /></p>
		</td></tr>
		<tr><td>			
			<p><label for="company">Фирма</label><em>*</em>
			<input id="company" name="company"  size="25" class="required"   /></p>
		</td></tr>
		<tr><td>			
			<p><label for="email">Е-мэйл</label><em>*</em>
			<input id="email" name="email"  size="25" class="required email"  /></p>
		</td></tr>
		<tr><td>			
			<p><label for="telefon">Телефон</label><em>*</em>
			<input id="telefon" name="telefon"  size="25" class="required"  /></p>
		</td></tr>			
		<tr><td>			
			<p><input type="submit" value="Зарегистрировать" /></p>
		</td></tr>
		</table>
	</fieldset>
</form>
<span id="responseMessage"></span>	
</center>

</body>
</html>